package visao;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextPane;
import javax.swing.SwingConstants;
import javax.swing.WindowConstants;
import javax.swing.border.EmptyBorder;

public class JanelaSobre extends JFrame {

	private JPanel contentPane;

	/**
	 * Launch the application.
	 */
/*	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					JanelaSobre frame = new JanelaSobre();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}*/

	/**
	 * Create the frame.
	 */
	public JanelaSobre() {
		setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
		setBounds(100, 100, 422, 228);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);

		JLabel lblSiscefSistema = new JLabel(
				"SisCEF - Sistema de Controle de Estoque Farmac\u00EAutico");
		lblSiscefSistema.setHorizontalAlignment(SwingConstants.CENTER);
		lblSiscefSistema.setVerticalAlignment(SwingConstants.CENTER);
		lblSiscefSistema.setEnabled(true);
		lblSiscefSistema.setBounds(0, 11, 406, 14);
		contentPane.add(lblSiscefSistema);

		JTextPane txtpnSistemaResponsvelPor = new JTextPane();
		txtpnSistemaResponsvelPor.setEditable(false);
		txtpnSistemaResponsvelPor
				.setText("Sistema respons\u00E1vel por controle o estoque de uma farm\u00E1cia. Controlando o n\u00EDvel do estoque e a validade dos medicamentos.");
		txtpnSistemaResponsvelPor.setBounds(10, 43, 386, 47);
		contentPane.add(txtpnSistemaResponsvelPor);

		JLabel lblVersoa = new JLabel("Vers\u00E3o: 1.0.0a (Beta)");
		lblVersoa.setBounds(10, 107, 140, 14);
		contentPane.add(lblVersoa);

		JLabel lblNewLabel = new JLabel(
				"Autores: F\u00E1bio Luciano & Antonio George");
		lblNewLabel.setBounds(10, 132, 369, 14);
		contentPane.add(lblNewLabel);

		JLabel lblTodosOsDireitos = new JLabel(
				"(c) Copyright 2012 - Todos os direitos reservados.");
		lblTodosOsDireitos.setHorizontalAlignment(SwingConstants.CENTER);
		lblTodosOsDireitos.setBounds(0, 157, 406, 25);
		contentPane.add(lblTodosOsDireitos);

		JButton btnNewButton = new JButton("Sair");
		btnNewButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				setVisible(false);
			}
		});
		btnNewButton.setBounds(335, 128, 61, 23);
		contentPane.add(btnNewButton);
	}
}
